//
//  ResultViewCell.m
//  Surveyer
//
//  Created by Tim on 13-8-9.
//  Copyright (c) 2013年 Tim. All rights reserved.
//

#import "ResultViewCell.h"
#import "TypeRedirector.h"
@implementation ResultViewCell
@synthesize title, type, count, currentItem, scrollView;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    title.text = currentItem.title;
    type = [UIImage imageNamed:[TypeRedirector typeName:currentItem]];
    count.text = [NSString stringWithFormat:@"%d", currentItem.result.count];
}
@end
